<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>

<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form class="form-horizontal" action="{:U('update')}" method="post">
                           

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 姓名 </label>
                                <div class="col-sm-9">
                                    <input type="text"
                                    <if condition="$member['uid'] eq 1">readonly
                                        <else/>
                                        name="user"
                                    </if>
                                    class="rcol-xs-10 col-sm-5" value="{$member.user}">
                                    <input type="hidden" name="uid" value="{$member['uid']}">
                                    <span class="help-inline col-xs-12 col-sm-7">
											<if condition="$member['uid'] eq 1"><span class="middle">无法修改</span></if>
											</span>
                                </div>
                            </div>

                            <div class="space-4"></div>

                           

                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2"> 用户密码 </label>
                                <div class="col-sm-9">
                                    <input type="password" name="password" id="password" placeholder="用户密码"
                                           class="col-xs-10 col-sm-5" value="">
                                    <span class="help-inline col-xs-12 col-sm-7">
												<span class="middle">留空不修改</span>
											</span>
                                </div>
                            </div>

                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-10"> 所属部门 </label>
                                <div class="col-sm-9">
                                    <if condition="$member['uid'] eq 1">
                                        <volist name="usergroup" id="val">
                                            <if condition="$val['id'] eq $member['group_id']">
                                                <input type="text" class="col-xs-10 col-sm-5" value="{$val['title']}"
                                                       readonly>
                                                <input type="hidden" name="group_id" id="group_id"
                                                       class="col-xs-10 col-sm-5" value="{$member['group_id']}">
                                            </if>
                                        </volist>

                                        <else/>
                                        <select id="group_id" name="group_id" class="rcol-xs-10 col-sm-5">
                                            <volist name="usergroup" id="val">
                                                <option value="{$val['id']}"
                                                <if condition="$val['id'] eq $member['group_id']">selected="selected"
                                                </if>
                                                >{$val['title']}</option>
                                            </volist>
                                        </select>
                                    </if>
                                    <span class="help-inline col-xs-12 col-sm-7">
                                                <span class="middle">请慎重选择用户组</span>
                                            </span>
                                </div>
                            </div>
                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2"> 所属岗位 </label>
                                <div class="col-sm-9">
                                    <input type="text" name="gang" id="password" placeholder="所属岗位"
                                           class="col-xs-10 col-sm-5" value="">
                                    
                                </div>
                            </div>

                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 性别 </label>
                                <div class="col-sm-9">
                                    <select id="sex" name="sex" class="multiselect">
                                        <option value="0"
                                        <if condition="$member['sex'] eq 0">selected="selected"</if>
                                        >保密</option>
                                        <option value="1"
                                        <if condition="$member['sex'] eq 1">selected="selected"</if>
                                        >男</option>
                                        <option value="2"
                                        <if condition="$member['sex'] eq 2">selected="selected"</if>
                                        >女</option>
                                    </select>
                                </div>
                            </div>

                            <div class="space-4"></div>

                            <!-- <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="id-date-picker-1">生日</label>
                                <div class="col-xs-9 col-sm-9">
                                    <div class="input-group col-xs-5">

                                        <input class="form-control" id="birthday" name="birthday" value="<if condition="
                                               $member['birthday'] neq '' ">{$member['birthday']|date="Y-m-d",###}</if>"
                                        type="text" data-date-format="dd-mm-yyyy" />
                                        <span class="input-group-addon">
													<i class="ace-icon fa fa-calendar bigger-110"></i>
												</span>

                                    </div>
                                </div>
                            </div> -->


                            <div class="space-4"></div>

                           <!--  <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-6"> 电话号码 </label>
                                <div class="col-sm-9">
                                    <input type="text"  name="phone" id="phone" placeholder="电话号码"
                                           class="col-xs-10 col-sm-5 form-control" value="{$member['phone']}">
                                    <span class="help-inline col-xs-12 col-sm-7">
												<span class="middle"></span>
											</span>
                                </div>
                            </div> -->

                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-7"> 工&nbsp;&nbsp;号</label>
                                <div class="col-sm-9">
                                    <input type="text" name="ghao" id="ghao" placeholder="工号..." class="col-xs-10 col-sm-5"
                                           value="{$member['ghao']}">
                                    <span class="help-inline col-xs-12 col-sm-7">
												<span class="middle"></span>
											</span>
                                </div>
                            </div>
                            
                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 上级 </label>
                                <div class="col-sm-9">
                                    
                                    <select id="lead" name="lead" class="multiselect">
                                    <volist name="ulist" id="ve">
                                        <if condition="$ve['user'] eq admin ">
                                        <option value="0">请选择...</option>
                                        <else />
                                        <option value="{$ve.user}">{$ve.user}</option>
                                        </if>
                                        
                                        
                                    </volist>

                                    </select>
                                    
                                </div>
                            </div>

                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 职位类型 </label>
                                <div class="col-sm-9">
                                    <select id="z_type" name="z_type" class="multiselect">
                                        <option value="0"
                                        <if condition="$member['z_type'] eq 1">selected="selected"</if>
                                        >职员</option>
                                        <option value="1"
                                        <if condition="$member['z_type'] eq 0">selected="selected"</if>
                                        >管理岗位</option>
                                        
                                    </select>
                                </div>
                            </div>

                            <div class="space-4"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 负责项目 </label>
                                <div class="col-sm-9">
                                    <select id="project" name="project" class="multiselect">
                                        <option value="0"
                                        <if condition="$member['project'] eq 0">selected="selected"</if>
                                        >保密</option>
                                        <option value="1"
                                        <if condition="$member['project'] eq 1">selected="selected"</if>
                                        >男</option>
                                        <option value="2"
                                        <if condition="$member['project'] eq 2">selected="selected"</if>
                                        >女</option>
                                    </select>
                                </div>
                            </div>

                            <div class="space-4"></div>

                                
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-7"> 入职时间</label>
                                <div class="col-sm-9">
                                    <input type="date" name="r_time" id="r_time" placeholder="入职时间..." class="col-xs-10 col-sm-5"
                                           value="{$member['r_time']}">
                                    <span class="help-inline col-xs-12 col-sm-7">
                                                <span class="middle"></span>
                                            </span>
                                </div>
                            </div>

                            <div class="space-4"></div>

                                
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-7"> 转正时间</label>
                                <div class="col-sm-9">
                                    <input type="date" name="z_time" id="z_time" placeholder="转正时间..." class="col-xs-10 col-sm-5"
                                           value="{$member['z_time']}">
                                    <span class="help-inline col-xs-12 col-sm-7">
                                                <span class="middle"></span>
                                            </span>
                                </div>
                            </div>
                            
     
                            <div class="space-4"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 在职状态 </label>
                                <div class="col-sm-9">
                                    <select id="type" name="type" class="multiselect">
                                        <option value="0"
                                       
                                        <option value="1"
                                        <if condition="$member['type'] eq 1">selected="selected"</if>
                                        >在职</option>
                                        <option value="2"
                                        <if condition="$member['type'] eq 2">selected="selected"</if>
                                        >离职</option>
                                    </select>
                                </div>
                            </div>



                            <div class="col-md-offset-2 col-md-9">
                                <button class="btn btn-info" type="submit">
                                    <i class="icon-ok bigger-110"></i>
                                    提交
                                </button>

                                &nbsp; &nbsp; &nbsp;
                                <button class="btn" type="reset">
                                    <i class="icon-undo bigger-110"></i>
                                    重置
                                </button>
                            </div>
                        </form>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script src="__PUBLIC__/qwadmin/js/date-time/bootstrap-datepicker.js"></script>
<script src="__PUBLIC__/qwadmin/js/function.js"></script>
<script type="text/javascript">
    jQuery(function ($) {
        $('#birthday').datepicker({
            format: 'yyyy-mm-dd',
            weekStart: 1,
            autoclose: true,
            todayBtn: 'linked',
            language: 'cn'
        });
    });
</script>
</body>
</html>
